<?php
foreach ($images as $image) {
    ?>
    <tr>
        <td class="center"><input type="checkbox" data-link="<?php echo base_url() . 'buildingimages/delete/' . $image->image_id; ?>" value="<?php echo $image->image_id; ?>"></td>
        <td class="center"><a href="<?php echo base_url() . $image->image_path; ?>" class="view cboxElement"><img width="40" height="40" src="<?php echo base_url() . $image->image_path; ?>" alt=""></a></td>
        <td><?php echo $image->image_desc; ?></td>
        <td><?php echo base_url() . $image->image_path; ?></td>                       
        <td class="center"><a href="<?php echo base_url() . $image->image_path; ?>" class="view cboxElement">View</a></td>                        
        <td class="center"><a href="<?php echo base_url() . 'buildingimages/delete/' . $image->image_id; ?>" class="delete">Delete</a></td>
    </tr>
<?php } ?>
